# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=iotop-c
pkgver=1.26
pkgrel=0
pkgdesc="simple top-like I/O monitor (implemented in C)"
url="https://github.com/Tomas-M/iotop"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no tests
depends="!iotop"
makedepends="linux-headers ncurses-dev coreutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Tomas-M/iotop/archive/v$pkgver.tar.gz"
builddir="$srcdir/iotop-$pkgver"

build() {
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
47246bc025c396bcd7569bd19d52079701e3b86ab239ac3db1d1386f358f6e95a63d7bad8c1d0552fb61315a9db282967c65e110703863ae71fa6260b775942b  iotop-c-1.26.tar.gz
"
